import axios from "@/utils/request"

//获取科室列表
export const getDepartmentListReq = (params) => axios({
    url:'/department/list',
    method:'get',
    params
})

//添加科室 接口
export const addDepartmentReq = (params) => axios({
    url:'/department/add',
    method:'get',
    params
})

//删除科室
export const delDepartmentReq = (params) => axios({
    url:'/department/del',
    method:'get',
    params
})

//编辑科室
export const editDepartmentReq = (params) => axios({
    url:'/department/edit',
    method:'get',
    params
})

//批量删除科室
export const batchdelDepartmentReq = (params) => axios({
    url:'/department/batchdel',
    method:'get',
    params
})

//查询科室
export const searchDepartmentReq = (params) => axios({
    url:'/department/search',
    method:'get',
    params
})

//查询所有医生名称
export const doctorDoctornamesReq = () => axios({
    url:'/doctor/doctornames',
    method:'get'
})